projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84bc280
)
shorthand: Don't require pack/unpack functions
author
Benjamin Otte
<otte@redhat.com>
Wed, 4 Jan 2012 03:04:15 +0000
(
04:04
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 9 Jan 2012 17:37:57 +0000
(18:37 +0100)
When using G_TYPE_NONE as the shorthand's type, the property is not
gettable/settable using regular APIs, so it essentially doesn't exist.
As it should be.
gtk/gtkcssshorthandpropertyimpl.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssshorthandpropertyimpl.c
b/gtk/gtkcssshorthandpropertyimpl.c
index b1f4bac52c92bb3703483b5bd11cac5a78415358..c394ffb18cbf19716f3fde49f5d8ef5bd810065a 100644
(file)
--- a/
gtk/gtkcssshorthandpropertyimpl.c
+++ b/
gtk/gtkcssshorthandpropertyimpl.c
@@
-616,9
+616,6
@@
_gtk_css_shorthand_property_register (const char *name,
{
GtkStyleProperty *node;
- g_return_if_fail (pack_func != NULL);
- g_return_if_fail (unpack_func != NULL);
-
node = g_object_new (GTK_TYPE_CSS_SHORTHAND_PROPERTY,
"name", name,
"value-type", value_type,